home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Sample Code / Snippets / QuickDraw / Imageer 1.0.0d3 / ImageerPPC.make < prev    next >
Encoding:
Text File  |  1996-02-27  |  2.6 KB  |  93 lines  |  [TEXT/MPS ]

  1. #-----------------------------------------------------------------------#
  2. #                                                                        #
  3. #    Program:    ImageerPPC                                                #
  4. #    File:        ImageerPPC.make    -    Make Source                            #
  5. #                                                                        #
  6. #    By:            Jason Hodges-Harris                                        #
  7. #                                                                        #
  8. #    Version:    1.0d2                                                    #
  9. #                                                                        #
  10. #    Copyright:    © 1995-96 Apple Computer, Inc.,                            #
  11. #                    all rights reserved.                                #    
  12. #                                                                        #
  13. #-----------------------------------------------------------------------#
  14.  
  15. AppName            =    'ImageerPPC'
  16. Signature        =    'Im#¢'
  17. projsrc            =    :source:
  18. PPCC            =    MrC
  19. obj                =     :object:
  20. Sym•PPC         =    -sym on
  21. Opts•PPC        =    -proto strict
  22. ObjDir•PPC        =    :object:
  23.  
  24. PPCCOptions        =    {Includes} {Sym•PPC} {Opts•PPC}
  25.  
  26. {obj}            ƒ    {projsrc}
  27.  
  28. {obj}.c.o        ƒ    {projsrc}.c
  29.     {MrC} {PPCCOptions} {DepDir}{Default}.c -o {TargDir}{Default}.c.x
  30.  
  31. #------------------------------------------------------------------------------
  32. # These are the objects that we want to link with. If any one of these
  33. # changes, then we invoke the Link command.
  34. #------------------------------------------------------------------------------
  35. AppObjects        =    ∂
  36.                     {obj}doevent.c.x ∂
  37.                     {obj}eventloop.c.x ∂
  38.                     {obj}fileCache.c.x ∂
  39.                     {obj}fileIO.c.x ∂
  40.                     {obj}gxGraphics.c.x ∂
  41.                     {obj}imageFilter.c.x ∂
  42.                     {obj}menu.c.x ∂
  43.                     {obj}offscrnGraphics.c.x ∂
  44.                     {obj}start.c.x ∂
  45.                     {obj}windows.c.x
  46.  
  47. PPCSysObjects = ∂
  48.         "{SharedLibraries}"InterfaceLib ∂
  49.         "{SharedLibraries}"StdCLib ∂
  50.         "{SharedLibraries}MathLib" ∂
  51.         "{SharedLibraries}"QuickTimeLib ∂
  52.         "{PPCLibraries}"StdCRuntime.o ∂
  53.         "{PPCLibraries}"PPCCRuntime.o ∂
  54.         "{PPCLibraries}"PPCToolLibs.o ∂
  55.         "{PPCLibraries}"QuickDrawGXLib.xcoff ∂
  56.         -librename QuickDrawGXLib.xcoff=QuickDrawGXLib ∂
  57.         -weakLib QuickTimeLib ∂
  58.         -weakLib QuickDrawGXLib
  59.         
  60.  
  61. {AppObjects}    ƒ        ImageerPPC.make ∂
  62.                     {projsrc}Imageer.app.h ∂
  63.                     {projsrc}Imageer.protos.h ∂
  64.  
  65.  
  66. {AppName}            ƒƒ ShellForce
  67.  
  68.  
  69. ShellForce            ƒ
  70.     BEGIN
  71.         IF "{ShellVersion}" == ""
  72.             ( EVALUATE "`Version`" =~ /MPW Shell≈ ([0-9]+(.[ab0-9]+)+)®1≈/ ) ∑ Dev:Null
  73.             SET ShellVersion "{®1}"
  74.         END
  75.     END ∑ Dev:Null # Output to bit bucket so we don’t see above calculations
  76.  
  77.  
  78. {AppName}            ƒƒ {AppObjects}
  79.     Rez -append {projsrc}Imageer.r -o {AppName}
  80.     PPCLink {Sym•PPC} -w ∂
  81.     -o {Targ} {AppObjects} ∂
  82.     -t APPL ∂
  83.     -c {Signature} ∂
  84.     {PPCSysObjects}
  85.  
  86. #------------------------------------------------------------------------------
  87. # Build rule that creates our resources and adds them to the application
  88. #------------------------------------------------------------------------------
  89.  
  90. {AppName}        ƒƒ    ImageerPPC.make ∂
  91.                     {projsrc}Imageer.app.h ∂
  92.                     {projsrc}Imageer.protos.h
  93.